package demo2;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Stack;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: xiaotutu
 * Date: 2024-03-16
 * Time: 21:41
 */
public class Test1 {
    public static void main(String[] args) {
        SeqList seqList = new SeqList();
        seqList.add(1);
        seqList.add(2);
        seqList.add(3);
        seqList.add(4);
        seqList.add(5);
        try{
            seqList.get(100);
        }catch (PosOutBoundsException e) {
            System.out.println("adsawqw");
            e.printStackTrace();
        }
        seqList.display();
    }

    public static void main1(String[] args) {
        List<Integer> stack = new Stack();
        List<Integer> arrayList = new ArrayList<>();
        List<Integer> linkedList = new LinkedList<>();
    }
}
